import {fetchPost,fetchGet} from "./http"
// 注册
export function setRegister(data){
    return fetchPost("/Jiebao/user/customer/register.json",data)
}
// 发送验证码
export function sendSms(data){
    return fetchGet("/Jiebao/user/sendSms.json",data)
}
// 登陆
export function login(data){
    return fetchPost("/Jiebao/user/customer/login.json",data)
}
// 校验账号是否存在
export function exist(data){
    return fetchPost("/Jiebao/user/customer/exist.json",data)
}
// 取货单列表
export function getTakeList(data){
    return fetchPost("/Jiebao/customer/client/order/getTakeList.json",data)
}
// 取货单订单列表
export function getTakeOrderList(data){
    return fetchPost("/Jiebao/customer/client/order/customer/list.json",data)
}
// 新增关注
export function follow(data){
    return fetchPost("/Jiebao/customer/client/follow/save.json",data)
}
// 送货单列表 
export function getDeliveryList(data){
    return fetchPost("/Jiebao/customer/client/order/getDeliveryList.json",data)
}
// 送货订单列表
export function supplier(data){
    return fetchPost("/Jiebao/customer/client/order/supplier/list.json",data)
}
// 获取用户信息 
export function getById(data){
    return fetchPost("/Jiebao/customer/client/user/getById.json",data)
}
// 关注列表
export function followList(data){
    return fetchPost("/Jiebao/customer/client/follow/list.json",data)
}
// 地址列表
export function addressList(data){
    return fetchPost("/Jiebao/customer/client/address/list.json",data)
}
// 新增地址
export function addressSave(data){
    return fetchPost("/Jiebao/customer/client/address/save.json",data)
}
// 修改地址
export function addressEdit(data){
    return fetchPost("/Jiebao/customer/client/address/edit.json",data)
}
// 删除地址
export function deleteAddress(data){
    return fetchPost("/Jiebao/customer/client/address/delete.json",data)
}
// 批量代发
export function issuing(data){
    return fetchPost("/Jiebao/customer/client/order/issuing.json",data)
}
// 修改用户信息
export function editUser(data){
    return fetchPost("/Jiebao/customer/client/user/edit.json",data)
}
// 上传文件
export function upload(data){
    return fetchPost("/Jiebao/user/upload.json",data)
}
// 修改手机号
export function updateAccount(data){
    return fetchPost("/Jiebao/customer/client/user/updateAccount.json",data)
}
// 获取代发订单商家列表
export function getProxyBizList(data){
    return fetchPost("/Jiebao/customer/client/order/getProxyBizList.json",data)
}
// 获取代发订单列表
export function getProxyOrderList(data){
    return fetchPost("/Jiebao/customer/client/order/getProxyOrderList.json",data)
}
// 批量标记
export function remark(data){
    return fetchPost("/Jiebao/customer/client/order/remark.json",data)
}
// 取消关注
export function followDele(data){
    return fetchPost("/Jiebao/customer/client/follow/delete.json",data)
}
// 取消代发（批量取消）
export function editProxy(data){
    return fetchPost("/Jiebao/customer/client/order/editProxy.json",data)
}
// 忘记密码
export function forgetPasswordForCustomer(data){
    return fetchPost("/Jiebao/user/forgetPasswordForCustomer.json",data)
}
// 获取微信openid
export function getUserInfo(data){
    return fetchPost("/Jiebao/tool/getUserInfo.json",data)
}
// 获取微信文件
export function getPictureFromWeixin(data){
    return fetchPost("/Jiebao/tool/getPictureFromWeixin.json",data)
}
export function getConfig(data){
    return fetchPost("/Jiebao/tool/getConfig.json",data)
}



